//
//  GetData.m
//  大轮胎
//
//  Created by 刘恪纲 on 2017/3/25.
//  Copyright © 2017年 zyc. All rights reserved.
//

#import "GetData.h"
#import "YCNetWork.h" 
#import <YYModel.h>
#import "ModelTwo.h"


static GetData * gd = nil;
@implementation GetData


#define URL @"http://lscy4.caeac.com.cn/api/home_update.php?appkey=1138&time=1433337484"

+(instancetype)shardData
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        gd = [[GetData alloc]init];
    });
    return gd;
}
-(void)getMessage
{
//    [YCNetWork getWithURLString:URL parameters:self success:^(NSDictionary *data) {     
//        NSMutableArray * arrData = [[NSMutableArray alloc]init];
//        
////        NSArray * arr = [data objectForKey:@"json"];
//       // NSLog(@"%@",arr);
//        for (NSDictionary * dic in data)
//        {
//            ModelTwo * mo = [ModelTwo yy_modelWithJSON:dic];
//            NSLog(@"-----%@",mo.json);
//          //  [arrData addObject:mo];
//        }
//        
//        
//        
//       
   
        
//    } failure:^(NSError *error) {}];
}
@end
